<!DOCTYPE html>
<html class="x-admin-sm">
  
  <head>
    <meta charset="UTF-8">
    <title>科室管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
	
	<script src="js/jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="command/Bootstrap/bootstrap-3.3.0/js/bootstrap.min.js"></script>
	<script src="command/bower_components/bootbox.min.js"></script>
	<script src="command/bower_components/bootstrap-select/js/bootstrap-select.js"></script>
	<script src="command/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/bootstrap-table.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>
	<script src="command/bower_components/moment/min/moment-with-locales.min.js"></script>
	<script type="application/javascript">
		$(function(){
			/* 新增按钮事件 */
			$("#btnNew").click(function(){
				$("#divData").modal();
			});
			$("#btnxg").click(function(){
				$("#divData-1").modal();
			});
			$("#btncx").click(function(){
				$("#divData-2").modal();
			});
		});
	</script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
	  
	   <!-- 模态框处理 -->
	  <div class="modal fade" id="divData" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">科  室</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">负责人</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
						<div class="modal-body form-inline">
							<div class="form-group">
								<label class="control-label" for="">职  务</label>
								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
							</div>
						</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">联系电话</label>
	  							<input type="text" id="num" name="Datanum" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">保存</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  <!-- 修改模态框处理 -->
	  <div class="modal fade" id="divData-1" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">科室</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">职务</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">负责人</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>	
						<div class="modal-body form-inline">
							<div class="form-group">
								<label class="control-label" for="">联系电话</label>
								<input type="text" id="num" name="Datanum" maxlength="20" class="form-control">
							</div>
						</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">修改</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  	 
	   <!-- 查询模态框处理 -->
	  <div class="modal fade" id="divData-2" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">科室</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">负责人</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">查询</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  
    <div class="x-nav">
      
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
	
    <div class="x-body">
      <xblock>
        <button class="layui-btn" id="btnNew" type="button">新增</button>
		<button class="layui-btn  " id="btnxg" type="button" >修改</button>
		<button class="layui-btn  " id="btncx" type="button" >查询</button>
        <span class="x-right" style="line-height:40px">共有数据：32 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
			<th>科室</th>
			<th>负责人</th>
            <th>职务</th>
            <th>联系电话</th>
			<th>删除</th>
        </thead>
        <tbody>
          <tr>
            <td>高层管理</td>
			<td>袁建国</td>
			<td>总经理</td>
            <td>18925139194</td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
		  <tr>
		    <td>财务科</td>
		  	<td>张明旭</td>
			<td>财务科科长</td>
		    <td>16783456901</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
		  <tr>
		    <td>人力资源科</td>
		  	<td>梁家国</td>
		  	<td>人力资源科副科长</td>
		    <td>13923134178</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
		  <tr>
		    <td>技术保障科</td>
		  	<td>郭建国</td>
		  	<td>技术保障科科长</td>
		    <td>13472349178</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
		  <tr>
		    <td>安全生产科</td>
		  	<td>齐昊</td>
		  	<td>安全生产科副科长</td>
		    <td>13923134178</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
		  <tr>
		    <td>设备保障科</td>
		  	<td>赵云龙</td>
		  	<td>设备保障科科长</td>
		    <td>13923134178</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
		  <tr>
		    <td>后勤保安处</td>
		  	<td>于明智</td>
		  	<td>后勤处处长</td>
		    <td>13923134178</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
        </tbody>
      </table>
      <div class="page">
        <div>
          <a class="prev" href="">&lt;&lt;</a>
          <a class="num" href="">1</a>
          <span class="current">2</span>
          <a class="num" href="">3</a>
          <a class="num" href="">35</a>
          <a class="next" href="">&gt;&gt;</a>
        </div>
      </div>

    </div>
    <script>
      layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });
      });


      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }



      function delAll (argument) {

        var data = tableCheck.getData();
  
        layer.confirm('确认要删除吗？'+data,function(index){
            //捉到所有被选中的，发异步进行删除
            layer.msg('删除成功', {icon: 1});
            $(".layui-form-checked").not('.header').parents('tr').remove();
        });
      }
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>